# Maintainer: Waweic <waweic@activ.ism.rocks>
pkgname=uxn
pkgver=1.0
pkgrel=0
pkgdesc="An assembler and emulator for the Uxn stack-machine"
url="https://wiki.xxiivv.com/site/uxn.html"
arch="all"
license="MIT"
makedepends="sdl2-dev"
subpackages="$pkgname-doc"
options="!check" #Tests not working yet
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~rabbits/uxn/archive/$pkgver.tar.gz"

build() {
	HOME=$(mktemp -d) ./build.sh --no-run
}

package() {
	install -Dm 755 -t "$pkgdir"/usr/bin/ "bin/uxnasm"
	install -Dm 755 -t "$pkgdir"/usr/bin/ "bin/uxnemu"
	install -Dm 755 -t "$pkgdir"/usr/bin/ "bin/uxncli"

	install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

sha512sums="
3d2f86f5dc702d73be8c9203dca10bdebf79f5052ab2fab044e46cb4189ddace46365b619e4da30b43804cb056fbb907ef9ff13b5f60e7ad30ce0f129724312c  uxn-1.0.tar.gz
"
